	<div id="banner">
	<img src="images/banner.png" height="200px";/>
	</div>
<div class="menu">
<ul> 
<li><a href="index.php" >Trang chủ</a></li>

<?php 
	include("include/config.php");
	$i = 0;
	$SQL="SELECT * FROM category WHERE status=1 ORDER BY stt";
	$rs=mysql_query($SQL);
	if($rs) 
	{
		while($row=mysql_fetch_array($rs))
		{
			echo "<li><a href='category.php?id=$row[id]'>$row[name]</a>";
			if ($row)
			{
				echo "<ul>";
				$pid = $row["id"];
				$SQL2="SELECT * FROM subcategory WHERE status=1  and parent_id=$pid ORDER BY stt";
				$rs2=mysql_query($SQL2);
				if($rs2) 
				{ 
					while($row2=mysql_fetch_array($rs2)) 
					{	
				 		echo "<li><a href='subcategory.php?id=$row2[id]'>$row2[name]</a></li>";
					}
				}
				echo "</ul>"; 
			}
		} 
		
	}
?>
	</li>
	<li><a href="contact.php">Liên hệ</a></li>
	<li><a href='cart.php'>Giỏ hàng</a></li>
</ul>
</div>